package com.ruoyi.event.domain.bo;

import com.google.common.collect.Lists;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 用户定位业务对象 event_pos
 *
 * @author strongme
 * @date 2023-04-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventPosBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    private Long userId;

    private List<Long> userIdList = Lists.newArrayList();

    /**
     * 经度
     */
    @NotNull(message = "经度不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal lng;

    /**
     * 纬度
     */
    @NotNull(message = "纬度不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal lat;

    private String address;


}
